import request from '@/utils/request'

// 查询订单列表
export function listOrderbill(query) {
  return request({
    url: '/system/orderbill/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getOrderbill(billid) {
  return request({
    url: '/system/orderbill/' + billid,
    method: 'get'
  })
}

// 新增订单
export function addOrderbill(data) {
  return request({
    url: '/system/orderbill',
    method: 'post',
    data: data
  })
}

// 修改订单
export function updateOrderbill(data) {
  return request({
    url: '/system/orderbill',
    method: 'put',
    data: data
  })
}

// 删除订单
export function delOrderbill(billid) {
  return request({
    url: '/system/orderbill/' + billid,
    method: 'delete'
  })
}

// 查询派工单编号
export function getCode() {
  return request({
    url: '/system/orderbill/billcode',
    method: 'get'
  })
}


// 查询订单报表
export function getOrderReport(data) {
  return request({
    url: '/system/orderbill/orderReport',
    method: 'post',
    data: data
  })
}

//查询订单下拉框
export function orderNotWaybillAll(data) {
  return request({
    url: '/system/orderbill/orderNotWaybill',
    method: 'get',
    params:data
  })
}
